package com.bawei.yangzongcai___day2.MaiDongFangHong.day7;
import android.widget.ImageView;

import com.bawei.yangzongcai___day2.R;
import com.bumptech.glide.Glide;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.viewholder.BaseViewHolder;

import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;

import java.util.List;

/**
 *    baseViewHolder.setText(R.id.dongfang7text,dataBean.getDesc());
 *         Glide.with(getContext()).load(dataBean.getUrl()).into((ImageView) baseViewHolder.getView(R.id.dongfang7img));
 * create by ertu
 * create on 2021/7/30
 * description
 */
public class Shiperiqiadpter extends BaseQuickAdapter<Jcalcals2, BaseViewHolder> {


    public Shiperiqiadpter( @Nullable List<Jcalcals2> data) {
        super(R.layout.maidongfanghong7, data);
        addChildClickViewIds(R.id.dongfang7img);
    }

    @Override
    protected void convert(@NotNull BaseViewHolder baseViewHolder, Jcalcals2 jcalcals) {
        baseViewHolder.setText(R.id.dongfang7text,jcalcals.getNana());
        Glide.with(getContext()).load(jcalcals.getTutu()).into((ImageView) baseViewHolder.getView(R.id.dongfang7img));
    }


}
